package yl.hs.bmipfull.pojo.system;

import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

/**
 * DictItemEntity 数据字典项实体类
 *
 * @author 谢景广
 * @category 系统管理——数据字典项
 * @date 2021-05-10
 */
@DBTable(disName = "数据字典项", mapCode = "data_dict_item")
public class DictItemEntity extends BaseEntity {


    private Long id;
    @DBField(disName = "数据项编号", mapCode = "sn", snPrefix = "DATA", isSerialNumber = true, isRequire = true)
    private String sn;
    private String typeCode;
    private String dataText;
    private String dataValue;
    private boolean defValue;
    private String sortCode;
    private Short state;

    /**
     * 获取主键
     *
     * @return
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置主键
     *
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取编号
     *
     * @return
     */
    public String getSn() {
        return this.sn;
    }

    /**
     * 设置编号
     *
     * @param sn
     */
    public void setSn(String sn) {
        this.sn = sn;
    }

    /**
     * 获取类型代码
     *
     * @return
     */
    public String getTypeCode() {
        return this.typeCode;
    }

    /**
     * 设置类型代码
     *
     * @param typeCode
     */
    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    /**
     * 获取字典名称
     *
     * @return
     */
    public String getDataText() {
        return this.dataText;
    }

    /**
     * 设置字典名称
     *
     * @param dataText
     */
    public void setDataText(String dataText) {
        this.dataText = dataText;
    }

    /**
     * 获取字典数据
     *
     * @return
     */
    public String getDataValue() {
        return this.dataValue;
    }

    /**
     * 设置字典数据
     *
     * @param dataValue
     */
    public void setDataValue(String dataValue) {
        this.dataValue = dataValue;
    }

    /**
     * 获取是否默数据
     *
     * @return
     */
    public boolean isDefValue() {
        return this.defValue;
    }

    /**
     * 设置是否默数据
     *
     * @param defValue
     */
    public void setDefValue(boolean defValue) {
        this.defValue = defValue;
    }

    /**
     * 获取排序字段
     *
     * @return
     */
    public String getSortCode() {
        return this.sortCode;
    }

    /**
     * 设置排序字段
     *
     * @param sortCode
     */
    public void setSortCode(String sortCode) {
        this.sortCode = sortCode;
    }

    /**
     * 获取状态
     *
     * @return
     */
    public Short getState() {
        return this.state;
    }

    /**
     * 设置状态
     *
     * @param state
     */
    public void setState(Short state) {
        this.state = state;
    }
}
